package org.wyf.EveryPoint.crowd.service;

import org.wyf.EveryPoint.crowd.entity.CollectionProject;
import org.wyf.EveryPoint.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 用户收藏表 Service接口
 *
 * @author wyf
 * @date 2021-04-26 16:43:18
 */
public interface ICollectionProjectService extends IService<CollectionProject> {
    /**
     * 查询（分页）
     *
     * @param request QueryRequest
     * @param collectionProject collectionProject
     * @return IPage<CollectionProject>
     */
    IPage<CollectionProject> findCollectionProjects(QueryRequest request, CollectionProject collectionProject);

    /**
     * 查询（所有）
     *
     * @param collectionProject collectionProject
     * @return List<CollectionProject>
     */
    List<CollectionProject> findCollectionProjects(CollectionProject collectionProject);

    /**
     * 新增
     *
     * @param collectionProject collectionProject
     */
    void createCollectionProject(CollectionProject collectionProject);

    /**
     * 修改
     *
     * @param collectionProject collectionProject
     */
    void updateCollectionProject(CollectionProject collectionProject);

    /**
     * 删除
     *
     * @param collectionProject collectionProject
     */
    void deleteCollectionProject(CollectionProject collectionProject);

    void deleteUserCollectionProject(Long projectId, Long userId);

    List<CollectionProject> listUserCollection(Long projectId, Long userId);
}
